-- GENERATED SPELL FOR [Argent Sentry] --


function spell0_16378(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(25821,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16378', 2278, 1)
end

function spell1_16378(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_16378', 8250, 1)
end

function spell2_16378(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16378', 5281, 1)
end

function spell3_16378(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16378', 533, 1)
end

function spell4_16378(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16378', 2321, 1)
end

function Sorts_16378(pUnit, Event)
local choix_sorts_16378 = math.random(0, 4)
if choix_sorts_16378 == 0 then
pUnit:RegisterEvent('spell0_16378', 1, 1)
end
if choix_sorts_16378 == 1 then
pUnit:RegisterEvent('spell1_16378', 1, 1)
end
if choix_sorts_16378 == 2 then
pUnit:RegisterEvent('spell2_16378', 1, 1)
end
if choix_sorts_16378 == 3 then
pUnit:RegisterEvent('spell3_16378', 1, 1)
end
if choix_sorts_16378 == 4 then
pUnit:RegisterEvent('spell4_16378', 1, 1)
end
end

function mob16378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16378', math.random(1500, 3000), 1)
end

function mob16378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16378, 1, 'mob16378_Action')
RegisterUnitEvent(16378, 2, 'mob16378_Leave')
RegisterUnitEvent(16378, 3, 'mob16378_Kill')
RegisterUnitEvent(16378, 4, 'mob16378_Die')
